<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8" />
	<title>PMS项目管理系统</title>
	<link href="css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
	<link type="text/css" href="css/mycss.css" rel="stylesheet"/>
</head>
<body class="body">
	<%@ include file="include/top.jsp" %>
	
	<div class="container">
		<div class="row">
		
			<jsp:include page="include/side.jsp">
				<jsp:param value="goal" name="tag"/>
			</jsp:include>
			<div class="span9">
				<div class="btn-group " style="float:right">
					<a class="btn" href="">
						<i class="icon-cog"></i>操作
					</a>
					<a class="dropdown-toggle btn" href="#menu1" data-toggle="dropdown" style="height:18px">
						<b class="caret"></b>
					</a>
					<ul class="dropdown-menu">
						<li>
							<a href="goal.jspx?_g=new">
								<i class="icon-plus"></i>添加新目标
							</a>
						</li>
						<li>
							<a href="task.jspx">
								<i class="icon-zoom-in"></i>浏览所有任务
							</a>
						</li>
					</ul>
				</div>
				<div class="clear"></div>
				<%
					List<Goal> list = (List<Goal>)session.getAttribute(Const.GOAL_IN_SESSION);
					for(Goal g : list){
				 %>
				<ul class="breadcrumb" style="margin-top:15px;margin-bottom:0px;border-radius:3px 3px 0px 0px">
					<li class="active">
						<a href="task.jspx?id=<%=g.getG_id() %>"><i class="icon-th"></i><%=g.getG_name() %></a>
					</li>
					<li style="float:right">
						<a class="link-black" href="goal.jspx?_g=edit&id=<%=g.getG_id() %>"><i class="icon-edit"></i>编辑</a>
					</li>
				</ul>
				<div class="wall">
					<p><%=g.getG_describle() %></p>
					<div class="progress-danger progress"><div class="bar" style="width<%=g.getG_rate() %>">已完成<%=g.getG_rate() %></div></div>
				</div>
				<% } %>
				<!--<ul class="breadcrumb" style="margin-top:15px;margin-bottom:0px;border-radius:3px 3px 0px 0px">
					<li class="active">
						<a href="task.html"><i class="icon-th"></i>目标2</a>
					</li>
					<li style="float:right">
						<i class="icon-edit"></i><a class="link-black" href="goal.jspx?_g=edit">编辑</a>
					</li>
				</ul>
				<div class="wall">
					<p>这是第二个目标，完成网页的设计！</p>
					<div class="progress-danger progress"><div class="bar" style="width:70%">已完成70%</div></div>
				</div>
				<ul class="breadcrumb" style="margin-top:15px;margin-bottom:0px;border-radius:3px 3px 0px 0px">
					<li class="active">
						<a href="task.html"><i class="icon-th"></i>目标3</a>
					</li>
					<li style="float:right">
						<i class="icon-edit"></i><a class="link-black" href="goal.jspx?_g=edit">编辑</a>
					</li>
				</ul>
				<div class="wall">
					<p>这是第三个目标，完成所有练习！</p>
					<div class="progress-success progress"><div class="bar" style="width:100%">全部完成</div></div>
				</div>
				-->
			</div>
		</div>
	</div>
	<script src="js/bootstrap.min.js" type="text/javascript"></script>
	<script src="js/jquery.js" type="text/javascript"></script>
	<script src="js/bootstrap-dropdown.js" type="text/javascript"></script>
	<script type="text/javascript">
		$('.dropdown-toggle').dropdown();		//javascript语句放到最后
	</script>
</body>
</html>